$(document).ready(function() {
	
	var aoColumns = [
            { "sTitle": "Pai", "mDataProp": "pai.nome", "sClass": "right", "bVisible": true, "sDefaultContent":""},
            { "sTitle": "Filhos", "mDataProp": "filhos","sWidth": "370px", "sClass": "right","bVisible": true , "sDefaultContent":"","bSortable": false, "isList":true, "insideDataProp": "nome"},
            { "sTitle": "Nome", "mDataProp": "nome", "sClass": "right", "bVisible": true, "sDefaultContent":""},
            { "sTitle": "Ordem", "mDataProp": "ordem","sType":"numeric", "sClass": "right", "bVisible": true, "sDefaultContent":""},
            { "sTitle": "Url", "mDataProp": "url", "sClass": "right", "bVisible": true, "sDefaultContent":""}
		];
		
	var id = "menusDataGrid";
	var url = "menus/bServerSideHql";
//	var table = 	" Menu as o ";
	var table = 	"";
	var where = " where 1=1 ";
	var classe = "br.com.educa.modelo.security.Menu";
	var arrString = 	JSON.stringify(aoColumns, function(key, val) {if (typeof val === 'function') { return val + '';} return val;});
	listServerSide(id, url, table, where,classe, arrString);
});